package com.njwb.pojo;

import lombok.Data;
import lombok.Getter;
import lombok.Setter;

import java.util.List;

@Setter
@Getter
public class Dept {
    private Integer deptNo;
    private String dname;
    private String loc;
    //描述一对多的关系
    //一个部门有多个员工
    private List<Emp> emps;

    @Override
    public String toString() {
        return "Dept{" +
                "deptNo=" + deptNo +
                ", dname='" + dname + '\'' +
                ", loc='" + loc + '\'' +
                '}';
    }
}
